package vpfarm;

import java.io.File;
import java.io.IOException;

import jtools.files.filesystem.FileOperation;
import jtools.network.mqueue.Adress;
import jtools.network.mqueue.MessageException;
import vpfarm.gui.JobGUI;
import vpfarm.master.Master;
import vpfarm.slave.Slave;

public class TestScenario {

	/**
	 * @param args
	 * @throws IOException 
	 * @throws MessageException 
	 */
	public static void main(String[] args) throws IOException, MessageException {
		Master.main(args);
		Slave.main(args);
		File f = new File("localplattform");
		if (f.exists())
			FileOperation.delete(f, false);
		Slave s = new Slave(new Adress("Meteor", 2000), true);
		new JobGUI();
	}

}
